@echo off
rem 查找文件
echo "================================================================="
for /f "delims=" %%i in ('dir /b ".\*.proto"') do echo %%i
echo "================================================================="
echo "scan protocol in the current floder is done."
rem 转c#
echo "================================================================="
for /f "delims=" %%i in ('dir /b/a "*.proto"') do protoc.exe -I=. --csharp_out=./csharp %%i
echo "convert c# protocol is done."
rem 转java
echo "================================================================="
for /f "delims=" %%i in ('dir /b/a "*.proto"') do protoc.exe -I=. --java_out=./a %%i
echo "convert java protocol is done."
echo "================================================================="
pause